<?php
declare(strict_types=1);

namespace SixShop\WechatPay\Hook;

use SixShop\Core\Attribute\Hook;
use SixShop\Payment\Event\GatheringPaymentEvent;
use SixShop\Payment\PaymentInfo;

class WechatpayHook
{

    /**
     * 上报提供的支付服务信息
     */
    #[Hook(GatheringPaymentEvent::class)]
    public function paymentInfoSubmission(): PaymentInfo
    {
        return new PaymentInfo(
            'wechatpay',
            '微信支付',
            '微信支付',
        );
    }
}